<?php

use think\facade\Route;
//Route::bind('admin');
Route::rule('login','Admin/login');
Route::rule('autologin','Admin/autoLogin');
Route::rule('logout','Admin/logout');
Route::rule('admin_detail/[:admin_id]','Admin/add_edit_admin');
Route::rule('admin_index','Admin/admin_list');
Route::rule('admin_shanchu','Admin/admin_del');
Route::rule('admin_qx','Admin/admin_role');
Route::rule('admin_qx_edit/[:role_id]','Admin/add_edit_role');
Route::rule('admin_qx_del/[:role_id]','Admin/roleDel');
Route::rule('admin_quanxian','Admin/right_list');
Route::rule('con_action','Admin/ajax_get_action');
Route::rule('admin_quanxian_edit/[:id]','Admin/add_edit_right');
Route::rule('admin_rizhi','Admin/admin_log');
Route::rule('index','Index/index');
Route::rule('tableVal','Index/changeTableVal');
Route::rule('getCategory','Index/get_category');
Route::rule('get_diqu','Index/get_region');
Route::rule('shanchu','Index/public_delete');
/********************{user控制器}********************/
Route::rule('user_index','User/index');
Route::rule('user_index_export','User/export_users');
Route::rule('user_xq/:user_id','User/detail','GET|POST');
Route::rule('user_td/:user_id','User/user_team');
Route::rule('zijin/:user_id','User/account_edit');
Route::rule('zj_mx/[:mobile]','User/account_log');
Route::rule('zj_export','User/export_account_log');
Route::rule('user_cz_mx/[:mobile]','User/user_recharge_log');
Route::rule('user_cz_export','User/export_user_recharge_log');
Route::rule('qb_index','User/wallet_index');
Route::rule('qb_edit/[:id]','User/add_edit_wallet');
Route::rule('user_dizhi/:user_id','User/address');
Route::rule('add_user','User/add_user');
Route::rule('userWith','User/withdrawals');
Route::rule('tx_export','User/export_with');
Route::rule('userWithUp','User/with_update');
Route::rule('user_qiandao','User/user_sign');
Route::rule('jl_mx/[:mobile]','User/jl_log');
Route::rule('jl_export','User/export_jl_log');
Route::rule('jl_lq_mx/[:mobile]','User/jl_lq_log');
Route::rule('jl_lq_export','User/export_jl_lq_log');
Route::rule('user_given','User/given');
Route::rule('zz_export','User/export_given');
Route::rule('user_change','User/change');
Route::rule('zhuanhua_export','User/export_change');
Route::rule('user_recharge','User/recharge');
Route::rule('cz_export','User/export_recharge');
Route::rule('userRechargeUp','User/recharge_update');
Route::rule('user_level','User/level_list');
Route::rule('add_edit_level/[:level_id]','User/add_edit_level');
//Route::rule('td_level','User/td_level_list');
//Route::rule('td_level_edit/[:level_id]','User/add_edit_td_level');
//Route::rule('user_dl','User/dl_user_list');
//Route::rule('add_edit_dl/[:id]','User/add_edit_dl_user');
//Route::rule('denglu/:user_id','User/do_login');
//Route::rule('jiangli','User/do_jiangli');
/********************{system控制器}********************/
Route::get('sys_index/[:inc_type]','System/index');
Route::get('sys_plugin','System/plugin_index');
Route::rule('sys_plugin_edit','System/plugin_edit');
Route::post('sys_handle','System/handle');
Route::rule('sys_icons','System/icons');
Route::rule('sys_diqu','System/region_index');
Route::rule('sys_diqu_edit/[:id]','System/add_edit_region');
Route::rule('sys_diqu_sc','System/region_delete');
Route::rule('sys_yunfei','System/shipping_index');
Route::rule('sys_yunfei_edit/[:id]','System/add_edit_shipping');
Route::rule('sys_yunfei_sc','System/shipping_delete');
Route::rule('xuanze_dq','System/choose_area');
Route::rule('sys_clean','System/cleanCache');
Route::rule('tabbar-list','System/tabBarList');
Route::rule('tabbar-detail','System/tabBarDetail');
Route::rule('tabbar-del','System/tabBarDel');
Route::rule('distribution','System/distribution');
Route::rule('save-distribution','System/save_distribution');
/********************{文件上传}********************/
Route::rule('uploadify','Uploadify/upload');
Route::rule('bianjiqi','Ueditor/index');
Route::rule('videoUp','Ueditor/videoUp');
Route::rule('imageUp','Ueditor/imageUp');
Route::rule('file_up','Ueditor/upFile');
Route::rule('fileList','Uploadify/fileList');
Route::rule('delFile','Uploadify/delupload');
/********************{content内容管理控制器}********************/
Route::rule('banner','Content/ad_list');
Route::rule('banner_edit/[:ad_id]','Content/add_edit_ad');
Route::rule('home_nav_list','Content/home_nav_list');
Route::rule('add_home_nav/[:ad_id]','Content/add_home_nav');
Route::rule('gonggao','Content/essay_list');
Route::rule('gonggao_edit/[:id]','Content/add_edit_essay');
//Route::rule('wenzhang','Content/article_list');
//Route::rule('wenzhang_edit/[:id]','Content/add_edit_article');
Route::rule('xieyi','Content/protocol_list');
Route::rule('xieyi_edit/[:id]','Content/add_edit_protocol');
/********************{goods商品管理控制器}********************/
Route::rule('product','Goods/goods_list');
Route::rule('product_edit/[:goods_id]','Goods/add_edit_goods');
Route::rule('product_del','Goods/delGoods');
Route::rule('product_sh','Goods/check_goods');
Route::rule('duihuan_product','Goods/convert_goods_list');
Route::rule('duihuan_product_edit/[:goods_id]','Goods/add_edit_convert_goods');
Route::rule('duihuan_product_del','Goods/delDhGoods');
Route::rule('jifen_product','Goods/jifen_goods_list');
Route::rule('jifen_product_edit/[:goods_id]','Goods/add_edit_jifen_goods');
Route::rule('jifen_product_del','Goods/delJfGoods');
Route::rule('stock_product','Goods/stock_goods_list');
Route::rule('stock_product_edit/[:goods_id]','Goods/add_edit_stock_goods');
Route::rule('stock_product_del','Goods/delStockGoods');
Route::rule('ry_fenlei','Goods/foster_goods_category');
Route::rule('ry_fenlei_edit','Goods/add_edit_foster_goods_category');
Route::rule('ry_product','Goods/foster_goods_list');
Route::rule('ry_product_sh','Goods/check_forster_goods');
Route::rule('ry_product_edit/[:goods_id]','Goods/add_edit_foster_goods');
Route::rule('ry_product_del','Goods/delFosterGoods');
Route::rule('product_fenlei','Goods/category_list');
Route::rule('product_fenlei_edit','Goods/add_edit_category');
Route::rule('goodsTypes','Goods/goods_type_list');
Route::rule('add_edit_type','Goods/type');
Route::rule('del_type','Goods/deleteType');
Route::rule('sc_goods_images/[:filename]','Goods/del_goods_images');
Route::rule('GetGoodsTypeList','Goods/ajaxGetGoodsTypeList');
Route::rule('GetSpecSelect','Goods/ajaxGetSpecSelect');
Route::rule('GetSpecInput','Goods/ajaxGetSpecInput');
Route::rule('delete_sp_item','Goods/deleteSpecItem');
Route::rule('delete_spec','Goods/deleteSpec');
Route::rule('type_save','Goods/saveType');
Route::rule('monitor_class','Goods/classify_index');
Route::rule('monitorr_class_edit','Goods/add_edit_classify');
Route::rule('monitor','Goods/monitor_index');
Route::rule('monitorr_edit','Goods/add_edit_monitor');
/********************{Deal交易管理控制器}********************/
Route::rule('deal_list','Deal/user_wallet_deal_list');
Route::rule('user_qb_list','Deal/user_wallet_list');
Route::rule('user_qb_add_edit','Deal/add_user_wallet');
Route::rule('user_qb_log_list/[:id]','Deal/user_wallet_log');
Route::rule('wallet_given_list','Deal/user_wallet_given_list');
/********************{Order订单管理控制器}********************/
Route::rule('indent','Order/index');
Route::rule('indent_print/:order_id','Order/order_print');
Route::rule('indent_export','Order/export_order');
Route::rule('indent_send/:order_id','Order/order_send');
Route::rule('indent_detail/:order_id','Order/order_detail');
Route::rule('indent_upload','Order/order_upload');
Route::rule('indent_foster','Order/foster_index');
Route::rule('indent_foster_export','Order/export_foster_order');
Route::rule('indent_foster_detail/:order_id','Order/foster_order_detail');
Route::rule('indent_foster_print','Order/foster_order_print');
Route::rule('indent_convert','Order/convert_index');
Route::rule('indent_convert_export','Order/export_convert_order');
Route::rule('indent_convert_detail/:order_id','Order/convert_order_detail');
Route::rule('indent_convert_send/:order_id','Order/convert_order_send');
Route::rule('indent_convert_print','Order/convert_order_print');
Route::rule('indent_jifen','Order/jifen_index');
Route::rule('indent_jifen_export','Order/export_jifen_order');
Route::rule('indent_jifen_detail/:order_id','Order/jifen_order_detail');
Route::rule('indent_jifen_send/:order_id','Order/jifen_order_send');
Route::rule('indent_jifen_print','Order/jifen_order_print');
Route::rule('indent_stock','Order/stock_index');
Route::rule('indent_stock_export','Order/export_stock_order');
Route::rule('indent_stock_detail/:order_id','Order/stock_order_detail');
Route::rule('indent_stock_send/:order_id','Order/stock_order_send');
Route::rule('indent_stock_print','Order/stock_order_print');
/********************{Report数据管理控制器}********************/
Route::rule('count_index','Report/index');
Route::rule('count_order_list','Report/sale_order');
Route::rule('count_order_top','Report/sale_top');
Route::rule('saletop_export','Report/export_saleTop');
Route::rule('count_user_top','Report/user_top');
Route::rule('usertop_export','Report/export_userTop');
Route::rule('count_user_order_list/[:user_id]','Report/user_order');
Route::rule('count_goods_list/[:goods_id]','Report/sale_list');
Route::rule('salelist_export/[:goods_id]','Report/export_saleList');
Route::rule('count_user','Report/user');
Route::rule('count_diqu','Report/area_top');
Route::rule('count_team','Report/team_top');
/********************{Weixin微信管理控制器}********************/
Route::rule('wx_home','Weixin/index');
Route::rule('wx_set','Weixin/setting');
Route::rule('wx_set_edit/:id','Weixin/setting_save');
Route::rule('wx_users','Weixin/third_user');
Route::rule('wx_caidan','Weixin/wx_menu');
Route::rule('wx_caidan_baocun','Weixin/wx_menu_save');
//Route::rule('wx_caidan_pub','Weixin/wx_menu_pub');
//Route::rule('wx_caidan_del','Weixin/wx_menu_del');
/********************{store商家管理控制器}********************/
//Route::rule('store_sh_list','Store/store_check_list');
//Route::rule('store_sh_detail/:store_id','Store/store_check_detail');
Route::rule('sj_list','Store/store_list');
Route::rule('sj_detail/:store_id','Store/store_detail');
Route::rule('ztd_list','Store/pick_list');
Route::rule('ztd_detail/:id','Store/pick_detail');
